package project;

import java.util.Scanner;

public class project_3 {
    public static void main(String[] args) {
//        Scanner sc = new Scanner(System.in);
        double[] arr = {5.4, 5.6, 8.4, 9.1, 6.6};
        for (int i = 0; i < arr.length - 1; i++) {
            double temp = 0;
            for (int j = 0; j < arr.length - 1 - i; j++) {
                if (arr[j] > arr[j + 1]) {
                    temp = arr[j];
                    arr[j] = arr[j + 1];
                    arr[j + 1] = temp;
                }
            }
        }
        for (double d:arr) {
            System.out.println(d);
        }
    }
}
